package com.czu.cy.pages;

import com.czu.cy.annotations.AnonymousAccess;
import com.czu.cy.services.Authenticator;

import org.apache.tapestry5.ioc.annotations.Inject;

/**
 * Start page of application cy.
 */
@AnonymousAccess
public class Index
{
    @Inject
    private Authenticator authenticator;

    public Object onActivate()
    {
        return authenticator.isLoggedIn() ? Home.class : Signin.class;
    }

}
